<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>

    <script>
        async function fn() {
            console.log(1);
            await 1
            console.log(100);
            await 2
            console.log(200);
            await 3
            console.log(300);
        }
        fn();
        console.log(2);


    </script>

</body>

</html>